home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1116 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: news.dfn.de!si-nic!usenet
  2. From: Markus Becker <becker@zess.uni-siegen.de>
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.tools.owl
  4. Subject: Re: Context Devices & co
  5. Date: 9 Jan 1996 12:59:57 GMT
  6. Organization: Computer Center, University of Siegen, Germany
  7. Message-ID: <4ctosd$6tp@si-nic.hrz.uni-siegen.de>
  8. References: <4ctms2$1ai@driene.student.utwente.nl>
  9. NNTP-Posting-Host: becker.zess.uni-siegen.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. v.n.jeronimus@student.utwente.nl (V.N.Jeronimus) wrote:
  16.  
  17. > A part of my window needs to be repainted, because I used ScrollDC to scroll 
  18. >the window to the left. All I want now is to build the new to-be-repainted 
  19. >rectangle in memory first and than BITBLT it to my Client Area, because 
  20. >rebuilding it on screen will make my Client Area blink while scrolling....
  21.  
  22.  
  23. >What I tried is something like this (All with OWL 2.5 & Borland C++ 4.52)
  24.  
  25. >1. I created a clientDC (TClientDC) of my client window;
  26. >2. I created a compatible memoryDC (TMemoryDC(clientDC)) of clientDC;
  27.  
  28. Then create a compatible bitmap for the MemoryDC.
  29. and you have to select the Bitmap into the MemoryDC, as standard
  30. windows selects a 1x1 monochrome bitmap into it.
  31.  
  32. >3. I build my new part that needs to be painted;
  33. >4. I call clientDC->BitBlt(rect,*memoryDC,TPoint(x,y),SRCCOPY).
  34.  
  35. >Vincent Jeronimus.
  36.  
  37. --
  38. Markus Becker                http://www.zess.uni-siegen.de/private/becker/
  39. Zentrum fuer Sensorsysteme (ZESS)
  40. http://www.zess.uni-siegen.de/private/becker/win95
  41.  
  42.  
  43.